package com.zzj.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zzj.entity.Product;
import com.zzj.mapper.ProductMapper;
import com.zzj.model.dto.ProductListDTO;
import com.zzj.service.IProductService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * 商品表 服务实现类
 * </p>
 *
 * @author zzj
 * @since 2022-12-07
 */
@Service
public class ProductServiceImpl extends ServiceImpl<ProductMapper, Product> implements IProductService {

  @Resource
  private ProductMapper productMapper;

  @Override
  public IPage<Product> productList(Page<Product> page, ProductListDTO in) {
    return productMapper.productList(in, page);
  }
}
